package Timer
{

    public class SynTimer extends Object
    {
        private var lastSynTime:Number;
        private var curTime:Number;
        private var showCatchTime:Number;

        public function SynTimer()
        {
            var _loc_1:* = new Date();
            this.lastSynTime = _loc_1.getTime();
            trace(this.lastSynTime);
            this.showCatchTime = 0;
            return;
        }// end function

        public function isTimeOut() : Boolean
        {
            var _loc_1:* = new Date();
            this.curTime = _loc_1.getTime();
            if (this.showCatchTime != 0)
            {
                if (this.curTime - this.showCatchTime > 1000)
                {
                    this.showCatchTime = 0;
                    //thief.main.removeChild(thief.main.catchPattern);
                }
            }
            if (this.curTime - this.lastSynTime < 100)
            {
                return false;
            }
            this.lastSynTime = this.curTime;
            return true;
        }// end function

        public function showCatch() : void
        {
            //thief.main.addChild(thief.main.catchPattern);
            var _loc_1:* = new Date();
            this.showCatchTime = _loc_1.getTime();
            return;
        }// end function

    }
}
